package com.gccloud.design.core.config;

import com.baomidou.mybatisplus.core.injector.ISqlInjector;
import com.gccloud.design.core.mp.injector.StarterSqlInjector;
import com.gccloud.starter.common.constant.GlobalConst;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 框架核心配置类
 *
 * @author liuchengbiao
 * @date 2020-06-24 16:58
 */
@Configuration
@Slf4j
public class StarterCoreBeanConfig {

    @Bean
    public ISqlInjector iSqlInjector() {
        log.info(GlobalConst.Console.LINE);
        log.info("初始化SQL注入器，可实现数据权限的控制");
        log.info(GlobalConst.Console.LINE);
        return new StarterSqlInjector();
    }

}
